-- GENERATED SPELL FOR [Damned Apothecary] --


function spell0_32289(pUnit, Event) --@Fire Breath Potion,Self--
pUnit:FullCastSpellOnTarget(34359,pUnit)
pUnit:RegisterEvent('Sorts_32289', 1700, 1)
end

function spell1_32289(pUnit, Event) --@Healing Potion,Self--
pUnit:FullCastSpellOnTarget(17534,pUnit)
pUnit:RegisterEvent('Sorts_32289', 0, 1)
end

function Sorts_32289(pUnit, Event)
local choix_sorts_32289 = math.random(0, 1)
if choix_sorts_32289 == 0 then
pUnit:RegisterEvent('spell0_32289', 1, 1)
end
if choix_sorts_32289 == 1 then
pUnit:RegisterEvent('spell1_32289', 1, 1)
end
end

function mob32289_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32289', math.random(1500, 3000), 1)
end

function mob32289_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32289_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32289_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32289, 1, 'mob32289_Action')
RegisterUnitEvent(32289, 2, 'mob32289_Leave')
RegisterUnitEvent(32289, 3, 'mob32289_Kill')
RegisterUnitEvent(32289, 4, 'mob32289_Die')
